package com.fh.common;

/**
 * 返回状态码的枚举
 * @author huangp
 *
 */
public enum ResultEnum {

	REGISTER_SUCCESS(0,"注册成功"),
	REGISTER_ERROR(1,"注册失败"),
	REGISTER_ERROR2(1,"验证码失效"),

	CODE_SUCCESS(0,"短信发送成功"),
	CODE_ERROR(1,"短信发送失败"),

	LOGIN_SUCCESS(0,"登陆成功"),
	BEFORE_SUCCESS(1,"请先登录"),
	LOGIN_ERROR1(1,"用户名密码不存在"),
	LOGIN_ERROR2 (1,"登陆失败"),
	LOGIN_ERROR3 (1,"用户名密码错误"),


	QUERY_SUCCESS(0,"查询成功"),
	QUERY_ERROR(1,"查询失败"),
	SUCCESS(0,"操作成功"),
	UPDATE_SUCCESS(0,"修改成功"),
	UPDATE_ERROR(1,"修改失败"),

	INSERT_SUCCESS(0,"新增成功"),
	INSERT_ERROR(1,"新增失败"),
	PAY_SUCCESS(0,"请求成功"),
	PAY_ERROR(1,"请求失败");




	private Integer code;
	private String msg;
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	private ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

}
